import  numpy
n=40000*10
x=numpy.random.uniform(0,1,n)
y=numpy.random.uniform(0,1,n)
count=sum(x*x+y*y<1)


print((count/n)*4)